package com.ziqikeji.xianyan.repository.article;

import com.ziqikeji.xianyan.common.BaseDao;
import com.ziqikeji.xianyan.entity.article.Article;
import com.ziqikeji.xianyan.enumeration.DeleteFlagEnum;
import com.ziqikeji.xianyan.enumeration.YesOrNoEnum;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Repository;

/**
 * 文章 dao
 * @author liuyu
 */
@Repository
public interface ArticleDao extends BaseDao<Article, String> {
    /**
     * @param deleteFlagEnum 删除标记
     * @param pageable 分页信息
     * @param yesOrNoEnum 是否审核
     * @return 返回查询信息
     */
    Page<Article> queryByDeleteFlagEnumAndIsPassed(DeleteFlagEnum deleteFlagEnum, YesOrNoEnum yesOrNoEnum, Pageable pageable);
}
